package org.lmind.srd35.combat

import java.util.ArrayList
import scala.collection.JavaConversions 
import org.lmind.srd35.core._
import org.lmind.srd35.world._

class RoundWorld (_rule:Rule, _world:World) {
  
  var _rounds = 0
  
  var _objects = List[RoundObject]()
  var _currentMove = -1
  
  def rule = _rule
  
  def world = _world
  
  def nextRound = {
    
    for (val o <- _objects) {
      o.roundEnd = false
    }
    _rounds += 1
    
    _currentMove = 0
  }
  
  def next = {
    _objects(_currentMove).roundEnd = true
    _currentMove += 1
  }
  
  def affect(target:RoundObject) = {
    
  }
  
}